<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"
		 import="edu.scu.declaresys.vo.*"
		 import="edu.scu.declaresys.config.*"
		 import="edu.scu.declaresys.web.util.*;"		
 %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			Project project = (Project)request.getAttribute(IAttrName.PROJECT_VO);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/comm.css" type="text/css"></link><link
	rel="stylesheet" href="css/proapp.css" type="text/css"></link>
</head>

<body>
	<jsp:include page="/jsp/template/pageHead.jsp" />
	<div>项目申报管理--&gt;修改申报卡</div>
	<div class="checkContent">
		<form action="<%=IActionName.GENERAL_DO_MODIFY_PROJECT%>" method="post">
			<table>
				<tr>
					<td>申报类型</td>
					<td>
						<input type="text" name=<%=Project.T_ID %> value="<%=project.getId() %>" style="display:none;"/>
						<select name="<%=Project.T_PROJECT_CLASS_ID %>">
						<%
				 			List<ProjectClass> projectClassLst = (List<ProjectClass>)request.getAttribute(IAttrName.CLASS_LIST);
				 			for(ProjectClass vo : projectClassLst)
				 			{
				 				String selected = (project.getProjectClassId().equals(vo.getId())) ? "selected=\"selected\"" : "";
				 				out.write("<option value=\"" + vo.getId() + "\"" + selected + ">" + vo.getName() + "</option>");
				 			}
			 			%>
						</select> 
						<%
						
						 %>
					</td>
				</tr>
				<tr>
					<td>申报项目名称</td>
					<td><input type="text" name="<%=Project.T_NAME %>" value="<%=project.getName()%>" /></td>
				</tr>
				<tr>
					<td>申报项目文件号</td>
					<td><input type="text" name="<%=Project.T_PROJECT_FILENO %>" value="<%=project.getProjectFileno()%>"/></td>
				</tr>
				<tr>
					<td>负责人</td>
					<td><input type="text" name="<%=Project.T_TECH_LEADER %>" value="<%=project.getTechLeader()%>"/></td>
				</tr>
				<tr>
					<td>单位法人</td>
					<td><input type="text" name="<%=Project.T_LEGAL_MAN %>" value="<%=project.getLegalMan() %>"/></td>
				</tr>
				<tr>
					<td>资金类型</td>
					<td>
					<%
						String threeCityChecked = (project.getFundType().equals(Project.FUND_THREE_CITY) ? "checked=\"checked\"" : "");
						String undevelopChecked = (threeCityChecked.isEmpty() ? "checked=\"checked\"" : "");
					 %>
					 <input type="radio" name="<%=Project.T_FUND_TYPE %>" <%=threeCityChecked %> value="<%=Project.FUND_THREE_CITY%>"><%=Project.FUND_THREE_CITY_NAME  %>
					 <input type="radio" name="<%=Project.T_FUND_TYPE %>" <%=undevelopChecked %> value="<%=Project.FUND_UNDEVOLOPED_AREA%>"><%=Project.FUND_UNDEVOLOPED_AREA_NAME  %>
					</td>
				</tr>
				<tr>
					<td>申请补助资金</td>
					<td><input type="text" name="<%=Project.T_GRANT_FUNDS %>" value="<%=project.getGrantFunds()%>"/>人民币(元)</td>
				</tr>
				<tr>
					<td>其他配套资金</td>
					<td><input type="text" name="<%=Project.T_OTHER_FUNDS %>" value="<%=project.getOtherFunds()%>"/>人民币(元)</td>
				</tr>
				<tr>
					<td>自筹资金</td>
					<td><input type="text" name="<%=Project.T_SELF_RAISED_FUNDS %>" value="<%=project.getSelfRaisedFunds()%>"/>人民币(元)</td>
				</tr>
				<tr>
					<td>县两资推荐文件号</td>
					<td><input type="text" name="<%=Project.T_COUNTY_REC_FILENO %>" value="<%=project.getCountyRecFileno()%>"/></td>
				</tr>
				<tr>
					<td>州市两资推荐文件号</td>
					<td><input type="text" name="<%=Project.T_CITY_REC_FILENO %>" value="<%=project.getCityRecFileno()%>"/></td>
				</tr>
				<tr>
					<td>项目介绍</td>
					<td><textarea rows="9" cols="40" name="<%=Project.T_INTRO %>" ><%=project.getIntro() %></textarea></td>
				</tr>
				<tr>
					<td colspan="2"><input class="submitBtn" type="submit" 
						value="修改" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
